public class T1 {
    public static void main(String[] args) {
        StringBuilder result = new StringBuilder();
        for (int num = 100; num < 1000; num++) {
            int a = num / 100;   
            int b = num / 10 % 10;  
            int c = num % 10;       
            if (a*a*a + b*b*b + c*c*c == num) {
                if (result.length() > 0) result.append(", ");
                result.append(num);
            }
        }
        System.out.println(result);
    }
}
